FROM python:script

LABEL Description="script-framework" Author="xmz" Version="1.0"

COPY . /opt/framework/script-framework

COPY supervisord.conf  /etc/supervisor/conf.d/supervisord.conf

WORKDIR /opt/framework/script-framework

RUN mkdir -p /var/log/supervisor

RUN pip install --upgrade pip -i https://mirror.baidu.com/pypi/simple\
    && pip install -r requirement.txt -i https://mirror.baidu.com/pypi/simple
# 校验路径
RUN ls /opt/framework/script-framework/applications/core \
    && ls /opt/framework/script-framework/applications/publics \
    && ls /opt/framework/script-framework/script_driver

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]










